package com.ad_hccm.service.Week;

import com.ad_hccm.domain.Week.AdverseReactionRecord;
import org.springframework.transaction.annotation.Transactional;

import java.sql.SQLIntegrityConstraintViolationException;
import java.util.List;

/**
 * TODO 不良反应记录
 */
public interface AdverseReactionRecordService {
    public boolean save(AdverseReactionRecord domain);
    @Transactional(timeout = -1)
    public boolean update(AdverseReactionRecord domain);
    public List<AdverseReactionRecord> getById(String id);
    public List<AdverseReactionRecord> getBigWeek(AdverseReactionRecord domain);
    public List<AdverseReactionRecord> getAll();
    @Transactional(timeout = -1)
    public boolean delete(AdverseReactionRecord domain);
    public boolean deleteBigWeek(AdverseReactionRecord domain);
}
